<template>
  <div class="index-container">
    <!-- 粒子背景 -->
    <div class="particles-background"></div>

    <!-- 渐变背景层 -->
    <div class="gradient-overlay"></div>

    <!-- 动态光效 -->
    <div class="dynamic-light"></div>

    <!-- 装饰性圆形元素 -->
    <div class="decorative-circle circle-1"></div>
    <div class="decorative-circle circle-2"></div>
    <div class="decorative-circle circle-3"></div>

    <!-- 医疗主题装饰图标 -->
    <div class="medical-icons">
      <div class="icon-heart">❤️</div>
      <div class="icon-plus">➕</div>
      <div class="icon-stethoscope">🩺</div>
      <div class="icon-pills">💊</div>
      <div class="icon-syringe">💉</div>
      <div class="icon-dna">🧬</div>
      <div class="icon-microscope">🔬</div>
      <div class="icon-heart-pulse">❤️‍🩹</div>
    </div>

    <!-- 医疗主题波浪装饰 -->
    <div class="medical-waves">
      <div class="wave-1"></div>
      <div class="wave-2"></div>
      <div class="wave-3"></div>
    </div>

    <el-container class="main-container">
      <el-header class="header">
        <div class="header-glow"></div>
        <el-row class="header-row">
          <el-col class="header-left">
            <span class="header-title">一体化慢病管理平台</span>
          </el-col>
          <!-- <el-col :span="6" style="text-align: right;" class="header-right">
            <div class="user-info-container">
               <el-icon class="user-avatar"><Avatar /></el-icon>
              <span class="user-name">杨大夫</span> 
              <el-button class="logout-btn" type="danger" @click="logout" round>退出登录</el-button>
            </div>
          </el-col> -->
        </el-row>
      </el-header>
      <el-container class="content-container">
        <el-aside width="250px" class="sidebar">
          <el-menu default-active="2" class="el-menu-vertical-demo" router background-color="#2c3e50" text-color="#fff"

            active-text-color="#409eff" unique-opened :default-openeds="['1', '1-1', '1-2', '1-3', '1-4', '1-5', '1-6', '1-7', '1-8']">

            <el-sub-menu index="1">
              <template #title>
                <el-icon>
                  <Management />
                </el-icon>
                <span>慢病管理</span>
              </template>

              <el-menu-item index="/PlatformFrameView">
                <el-icon>
                  <House />
                </el-icon>
                <span>医疗系统首页</span>
              </el-menu-item>
              <el-sub-menu index="1-1">
                <template #title>
                  <el-icon>
                    <User />
                  </el-icon>
                  <span>产品说明</span>
                </template>
                <!-- 👇 新增多个下一级菜单项（红色标注） -->
                <el-menu-item index="/ExplainView">产品说明</el-menu-item>
                <el-menu-item index="/VersionUpdatingView">版本更新</el-menu-item>
                <el-menu-item index="/StandardView">组件规范</el-menu-item>
                <el-menu-item index="/ConstructionView">系统结构</el-menu-item>
              </el-sub-menu>
              <el-sub-menu index="1-2">
                <template #title>
                  <el-icon>
                    <User />
                  </el-icon>
                  <span>居民档案</span>
                </template>
                <!-- 👇 新增多个下一级菜单项（红色标注） -->
                <el-menu-item index="/ResidentfilesView">基础信息配置</el-menu-item>
                <el-menu-item index="/RecordView">居民档案</el-menu-item>
                <el-menu-item index="/IndetailView">档案详细</el-menu-item>
                <!-- <el-menu-item index="1-2-3">慢病筛查</el-menu-item> -->
              </el-sub-menu>
              <el-sub-menu index="1-3">
                <template #title>
                  <el-icon>
                    <Edit />
                  </el-icon>
                  <span>签约管理</span>
                </template>
                <!-- 👇 新增多个下一级菜单项（红色标注） -->
                <el-menu-item index="CSignview"> 集中签约</el-menu-item>
                <el-menu-item index="MyCsignView"> 我的签约</el-menu-item>
                <el-menu-item index="GotCsignview"> 档案详情(已签约)</el-menu-item>
              </el-sub-menu>


              <el-sub-menu index="1-4">
                <template #title>
                  <el-icon>
                    <PieChart />
                  </el-icon>
                  <span>慢病管理</span>
                </template>
                <!-- 👇 新增多个下一级菜单项（红色标注） -->
                <el-menu-item index="/ChronicDataListView">慢病管理</el-menu-item>
                <el-menu-item index="/HealthReportView">健康报告</el-menu-item>
                <el-menu-item index="/AccessDataView">随访管理</el-menu-item>
              </el-sub-menu>

              <el-sub-menu index="1-5">
                <template #title>
                  <el-icon>
                    <Document />
                  </el-icon>
                  <span>诊疗管理</span>
                </template>
                <!-- 👇 新增多个下一级菜单项（红色标注） -->
                <el-menu-item index="Collection">指标采集</el-menu-item>
                <el-menu-item index="Referral">转诊管理</el-menu-item>
              </el-sub-menu>


              <el-sub-menu index="1-6">
                <template #title>
                  <el-icon>
                    <Memo />
                  </el-icon>
                  <span>知识管理</span>
                </template>
                <!-- 👇 新增多个下一级菜单项（红色标注） -->
                <el-menu-item index="HealthEducation">我的知识</el-menu-item>
                <el-menu-item index="Knowledgesearch">知识查阅</el-menu-item>
              </el-sub-menu>



              <el-sub-menu index="1-7">
                <template #title>
                  <el-icon>
                    <Reading />
                  </el-icon>
                  <span>基础设置</span>
                </template>
                <!-- 👇 新增多个下一级菜单项（红色标注） -->
                <el-menu-item index="ElementSettings">元素管理</el-menu-item>
                <el-menu-item index="FormManagement">表单管理</el-menu-item>
                <el-menu-item index="Diseasemanagement">病种管理</el-menu-item>
                <el-menu-item index="Indicatorconfiguration">指标配置</el-menu-item>
                <el-menu-item index="IndexManagementView">指标管理</el-menu-item>
                <el-menu-item index="TeamView">团队管理</el-menu-item>
                <el-menu-item index="EquipmentView">设备管理</el-menu-item>
                <el-menu-item index="ReferralView">转诊配置</el-menu-item>
              </el-sub-menu>


              <el-sub-menu index="1-8">
                <template #title>
                  <el-icon>
                    <PieChart />
                  </el-icon>
                  <span>运营决策</span>
                </template>
                <!-- 👇 新增多个下一级菜单项（红色标注） -->
                <el-menu-item index="ManagementOverviewView">管理概况</el-menu-item>
                <el-menu-item index="/LevelofmanagementView">管理层级</el-menu-item>
                <el-menu-item index="WorkloadstatisticsView">工作量统计</el-menu-item>
              </el-sub-menu>



            </el-sub-menu>
          </el-menu>
        </el-aside>
        <el-main class="main-content">
          <RouterView></RouterView>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script setup>
import {
  Grid,
  Avatar,
  Management,
  House,
  User,
  Edit,
  Document,
  PieChart,
  Reading,
  Tools,
  DataAnalysis
} from '@element-plus/icons-vue'
import { ElMessageBox, ElMessage } from 'element-plus'
import { useRouter } from 'vue-router'

const router = useRouter()

const logout = () => {
  ElMessageBox.confirm('您确定要退出系统吗？', '提示', {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning',
    center: true,
    roundButton: true,
  })
    .then(() => {
      // 清除本地存储的登录信息
      localStorage.removeItem('savedLoginInfo')

      // 显示退出成功消息
      ElMessage.success('退出登录成功')

      // 跳转到登录页面
      router.push('/')
    })
    .catch(() => {
      // 用户取消退出
      console.log('用户取消退出')
    })
}
</script>

<style scoped>
/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

.index-container {
  font-family: 'Noto Sans SC', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 粒子背景效果 */
.particles-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 20% 80%, rgba(79, 172, 254, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(0, 242, 254, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(103, 237, 213, 0.15) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 70% 10%, rgba(79, 172, 254, 0.1) 2px, transparent 2px);
  background-size: 60px 60px;
  animation: particles-move 12s linear infinite;
  z-index: 0;
}

@keyframes particles-move {
  0% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-25px) translateX(25px);
  }

  100% {
    transform: translateY(0) translateX(0);
  }
}

/* 渐变背景层 */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
      rgba(79, 172, 254, 0.25),
      rgba(0, 242, 254, 0.25),
      rgba(103, 237, 213, 0.25),
      rgba(79, 172, 254, 0.25));
  animation: gradientAnimation 10s ease infinite;
  background-size: 400% 400%;
  z-index: 1;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* 动态光效 */
.dynamic-light {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(79, 172, 254, 0.15) 0%,
      rgba(0, 242, 254, 0.1) 30%,
      rgba(103, 237, 213, 0.05) 60%,
      transparent 70%);
  animation: light-rotate 15s linear infinite;
  z-index: 2;
}

@keyframes light-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 装饰性圆形元素 */
.decorative-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  z-index: 2;
  box-shadow: 0 0 30px rgba(79, 172, 254, 0.2);
}

.circle-1 {
  top: 10%;
  left: 5%;
  width: 120px;
  height: 120px;
  animation: float 8s ease-in-out infinite;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.15), rgba(79, 172, 254, 0.05));
}

.circle-2 {
  bottom: 15%;
  right: 10%;
  width: 180px;
  height: 180px;
  animation: float 12s ease-in-out infinite;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.15), rgba(0, 242, 254, 0.05));
}

.circle-3 {
  top: 40%;
  right: 20%;
  width: 100px;
  height: 100px;
  animation: float 10s ease-in-out infinite;
  background: radial-gradient(circle, rgba(103, 237, 213, 0.15), rgba(103, 237, 213, 0.05));
}

@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.1);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

/* 医疗主题装饰图标 */
.medical-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.icon-heart,
.icon-plus,
.icon-stethoscope,
.icon-pills,
.icon-syringe {
  position: absolute;
  font-size: 24px;
  opacity: 0.1;
  animation: icon-float 6s ease-in-out infinite;
}

.icon-heart {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.icon-plus {
  top: 30%;
  right: 15%;
  animation-delay: 1s;
}

.icon-stethoscope {
  bottom: 25%;
  left: 20%;
  animation-delay: 2s;
}

.icon-pills {
  bottom: 35%;
  right: 25%;
  animation-delay: 3s;
}

.icon-syringe {
  top: 45%;
  left: 30%;
  animation-delay: 4s;
}

.icon-dna {
  top: 15%;
  right: 25%;
  animation-delay: 5s;
}

.icon-microscope {
  bottom: 20%;
  right: 15%;
  animation-delay: 6s;
}

.icon-heart-pulse {
  top: 60%;
  left: 20%;
  animation-delay: 7s;
}

@keyframes icon-float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* 医疗主题波浪装饰 */
.medical-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 4;
  overflow: hidden;
}

.wave-1,
.wave-2,
.wave-3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.5c47.8,4.5,95.6,8.8,143.7,12.3c447.2,32.8,894.4,32.8,1341.3,0c47.3-3.5,94.6-7.7,142-12.3V0H0z" fill="rgba(79, 172, 254, 0.2)"/></svg>') no-repeat;
  background-size: 50% 100px;
  animation: wave-animation 15s linear infinite;
}

.wave-2 {
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.5c47.8,4.5,95.6,8.8,143.7,12.3c447.2,32.8,894.4,32.8,1341.3,0c47.3-3.5,94.6-7.7,142-12.3V0H0z" fill="rgba(0, 242, 254, 0.2)"/></svg>') no-repeat;
  background-size: 50% 100px;
  animation: wave-animation 20s linear infinite;
  opacity: 0.7;
  animation-direction: reverse;
}

.wave-3 {
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.5c47.8,4.5,95.6,8.8,143.7,12.3c447.2,32.8,894.4,32.8,1341.3,0c47.3-3.5,94.6-7.7,142-12.3V0H0z" fill="rgba(103, 237, 213, 0.2)"/></svg>') no-repeat;
  background-size: 50% 100px;
  animation: wave-animation 25s linear infinite;
  opacity: 0.5;
}

@keyframes wave-animation {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 主容器 */
.main-container {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  border-radius: 15px;
  margin: 20px;
  overflow: hidden;
  min-height: calc(100vh - 40px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 标题栏 */
.header {
  background: linear-gradient(135deg, #1a2a6c, #2a5298, #3a7bd5, #00d2ff);
  color: white;
  padding: 0 20px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 10;
  height: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 3px solid rgba(0, 210, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 0 0 15px 15px;
}

/* 标题栏装饰元素 */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 30%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 20% 70%, rgba(0, 210, 255, 0.1) 3px, transparent 3px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 90% 60%, rgba(0, 210, 255, 0.1) 3px, transparent 3px);
  background-size: 50px 50px;
  opacity: 0.4;
  animation: stars-pulse 4s infinite ease-in-out;
}

/* 标题栏动态光效 */
.header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 100%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      rgba(0, 210, 255, 0.4),
      rgba(255, 255, 255, 0.1),
      transparent);
  animation: header-shine 5s infinite;
  transform: rotate(25deg);
}

/* 标题栏呼吸灯效果 */
.header-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.3), transparent 70%);
  opacity: 0;
  animation: header-glow 3s infinite ease-in-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes header-shine {
  0% {
    left: -100%;
    opacity: 0.5;
  }

  20% {
    left: -50%;
    opacity: 0.8;
  }

  50% {
    left: 0%;
    opacity: 1;
  }

  80% {
    left: 50%;
    opacity: 0.8;
  }

  100% {
    left: 100%;
    opacity: 0.5;
  }
}

@keyframes stars-pulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes header-glow {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.6;
  }
}

.header-row {
  display: flex;
  align-items: center;
  height: 60px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.header-right {
  justify-content: flex-end;
}

.user-info-container {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  padding: 8px 0;
}

.user-avatar {
  font-size: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
  transition: all 0.3s ease;
}

.user-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(79, 172, 254, 0.6);
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-icon {
  font-size: 28px;
  margin-right: 15px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  animation: icon-float 3s ease-in-out infinite;
  color: #a8edea;
}

.header-icon:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.9));
  color: #ffffff;
}

.header-icon :deep(.el-icon) {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@keyframes icon-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.header-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  background: linear-gradient(90deg, #ffffff, #e0f7fa, #a8edea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: title-glow 2s infinite alternate;
}

@keyframes title-glow {
  0% {
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  }

  100% {
    text-shadow: 0 3px 12px rgba(0, 210, 255, 0.6), 0 3px 20px rgba(0, 210, 255, 0.4);
  }
}

.header-user {
  margin: 0 15px;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  background: linear-gradient(90deg, #ffffff, #e0f7fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding: 5px 10px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logout-btn {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff4757 100%);
  border: none;
  font-weight: 500;
  padding: 8px 20px;
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-align: right;
}

.logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.logout-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 90, 36, 0.6);
  background: linear-gradient(135deg, #ff7b7b 0%, #ff6b47 50%, #ff5252 100%);
}

.logout-btn:hover::before {
  left: 100%;
}

.logout-btn:hover::after {
  opacity: 1;
}

.logout-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(238, 90, 36, 0.4);
}

/* 内容容器 */
.content-container {
  height: calc(100vh - 100px);
}

/* 菜单容器样式 */
.sidebar {
  background: linear-gradient(135deg, #2c3e50 0%, #1a2a3a 100%);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Element Plus 菜单样式优化 */
.el-menu {
  border-right: none !important;
  background: transparent !important;
}

.el-menu-item,
.el-sub-menu__title {
  transition: all 0.3s ease;
  position: relative;
  margin: 5px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  overflow: hidden;
}

.el-menu-item::before,
.el-sub-menu__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 25%, rgba(79, 172, 254, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 85% 75%, rgba(0, 242, 254, 0.08) 1px, transparent 1px);
  background-size: 35px 35px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.el-menu-item:hover,
.el-sub-menu__title:hover {
  background: linear-gradient(90deg, rgba(79, 172, 254, 0.4), rgba(0, 242, 254, 0.4)) !important;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.el-menu-item:hover::before,
.el-sub-menu__title:hover::before {
  opacity: 1;
}

.el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(79, 172, 254, 0.7), rgba(0, 242, 254, 0.7)) !important;
  color: white !important;
  border-left: 4px solid #67edd5;
  box-shadow: 0 6px 25px rgba(79, 172, 254, 0.5);
  border: 1px solid rgba(103, 237, 213, 0.7);
  position: relative;
  overflow: hidden;
}

.el-menu-item.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 30%, rgba(103, 237, 213, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(103, 237, 213, 0.3) 2px, transparent 2px);
  background-size: 40px 40px;
  animation: active-pulse 2s infinite;
  z-index: -1;
}

@keyframes active-pulse {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0.3;
  }
}

/* 子菜单项样式 */
.el-sub-menu .el-menu-item {
  padding-left: 45px !important;
  margin: 3px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.el-sub-menu .el-menu-item:hover {
  background: linear-gradient(90deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 254, 0.3)) !important;
  transform: translateX(3px);
}

.el-sub-menu .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(79, 172, 254, 0.5), rgba(0, 242, 254, 0.5)) !important;
  border-left: 3px solid #67edd5;
}

/* 菜单展开动画 */
.el-sub-menu .el-menu {
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 8px;
  margin: 0 10px;
  padding: 5px 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 菜单标题样式优化 */
.el-sub-menu .el-sub-menu__title {
  transition: all 0.3s ease;
  position: relative;
  margin: 5px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-weight: 500;
  overflow: hidden;
}

.el-sub-menu .el-sub-menu__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 25%, rgba(79, 172, 254, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 85% 75%, rgba(0, 242, 254, 0.08) 1px, transparent 1px);
  background-size: 35px 35px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.el-sub-menu .el-sub-menu__title:hover {
  background: linear-gradient(90deg, rgba(79, 172, 254, 0.4), rgba(0, 242, 254, 0.4)) !important;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.el-sub-menu .el-sub-menu__title:hover::before {
  opacity: 1;
}

/* 菜单图标样式 */
.el-menu-item .el-icon,
.el-sub-menu .el-sub-menu__title .el-icon {
  font-size: 18px;
  margin-right: 12px;
  transition: all 0.3s ease;
  color: #a0d2f3;
}

.el-menu-item:hover .el-icon,
.el-sub-menu .el-sub-menu__title:hover .el-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.8));
  color: #ffffff;
}

.el-menu-item.is-active .el-icon {
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(103, 237, 213, 0.9));
}

/* 主内容区域 */
.main-content {
  background: #f8f9fa;
  padding: 20px;
  overflow-y: auto;
  position: relative;
}

/* 主内容区域装饰元素 */
.main-content::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  background:
    radial-gradient(circle at 30% 30%, rgba(79, 172, 254, 0.1) 5px, transparent 5px),
    radial-gradient(circle at 70% 70%, rgba(0, 242, 254, 0.1) 5px, transparent 5px);
  background-size: 20px 20px;
  border-radius: 50%;
  z-index: -1;
}

.main-content::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 80px;
  height: 80px;
  background:
    conic-gradient(rgba(103, 237, 213, 0.1) 0deg, transparent 30deg, rgba(103, 237, 213, 0.1) 60deg, transparent 90deg),
    conic-gradient(rgba(79, 172, 254, 0.1) 120deg, transparent 150deg, rgba(79, 172, 254, 0.1) 180deg, transparent 210deg),
    conic-gradient(rgba(0, 242, 254, 0.1) 240deg, transparent 270deg, rgba(0, 242, 254, 0.1) 300deg, transparent 330deg);
  border-radius: 50%;
  z-index: -1;
}

/* 滚动条样式 */
.main-content::-webkit-scrollbar {
  width: 8px;
}

.main-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.main-content::-webkit-scrollbar-thumb {
  background: #bdc3c7;
  border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-container {
    margin: 10px;
    min-height: calc(100vh - 20px);
  }

  .header-title {
    font-size: 18px;
  }

  .header-user {
    font-size: 14px;
    margin: 0 10px;
  }

  .logout-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .sidebar {
    width: 200px !important;
  }

  .decorative-circle {
    display: none;
  }
}
</style>